import AbsWindow from "../../framework/AbsWindow";
import { WindowName } from "../../framework/reflect/WindowName";
import Context from "../../framework/Context";
import { SubContextView } from "../comp/SubContextView";
import { ShareUtil, ShareGroupInfo, shareUtil } from "../../framework/wx/ShareUtil";
const { ccclass, property } = cc._decorator;
@ccclass
@WindowName("SubWindow")
export default class SubWindow extends AbsWindow {
    @property(SubContextView)
    private dataView:SubContextView = null;
    @property(cc.Node)
    private closeBtn:cc.Node = null;
    @property(cc.Node)
    private share:cc.Node = null;
    public onShow() {
       
        this.setClickListener(this.closeBtn,this.onCloseBtn);
        this.setClickListener(this.share,this.onShare);
        
    } 
    private onCloseBtn(){
       this.context.closeWindow(SubWindow);
    }
    private onShare(){
        shareUtil.share();
        
    }

}